<template>
  <div class="home">
    <h1>Welcome to Code Play</h1>
    <el-button type="primary" @click="handleClick">Get Started</el-button>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

const handleClick = () => {
  router.push('/login')
}
</script>

<style lang="scss" scoped>
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  
  h1 {
    margin-bottom: $spacing-lg;
    color: $primary-color;
  }
}
</style> 